$(function() {
	doSearch();
});

function doSearch() {
	var sysVer = $('#sysVer').combobox('getValue');
	var startTime = $('#startTime').datetimebox('getValue');
	var endTime = $('#endTime').datetimebox('getValue');
	
	var xAxis = [];
	var newNum = [];
	var retentNum = [];
	var unbusyNum = [];
	$.ajax({
		url : '/residueStatistics/list',
		data : {
			sysVer : sysVer,
			startTime : startTime,
			endTime : endTime
		},
		type : "POST",
		datatype : "json",
		async : true,
		success : function(data) {
			var xAxis = data.xAxis;
			var yAxis = eval(data.yAxis);
			$.each(yAxis, function(index, mod) {
				newNum.push(mod.newNum);
				retentNum.push(mod.retentNum);
				unbusyNum.push(mod.unbusyNum);
			});
			issueHandler.showHighChart(xAxis, newNum, retentNum, unbusyNum);
		}
	});
}
